package oop5;

/**
 * @author oldliu
 * @since 1.0
 */
public class CatTest {
    public static void main(String[] args) {
        Cat c = new Cat("小花花", 100, 100, "公");
        c.catchMouse("米奇");
        c.print();
        System.out.println("----------------------");
        Pet p = new Cat("大花花", 100, 100, "公");
        p.print();//真实对象的print
    }
}
